/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: nu uc
 * License Type: Evaluation
 */
package org.testis.orm.classes;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class T_bed_dslamCriteria extends AbstractORMCriteria {
    public final IntegerExpression id;
    public final StringExpression userName;
    public final StringExpression password;
    public final BooleanExpression external;

    public T_bed_dslamCriteria(Criteria criteria) {
	super(criteria);
	id = new IntegerExpression("id", this);
	userName = new StringExpression("userName", this);
	password = new StringExpression("password", this);
	external = new BooleanExpression("external", this);
    }

    public T_bed_dslamCriteria(PersistentSession session) {
	this(session.createCriteria(T_bed_dslam.class));
    }

    public T_bed_dslamCriteria() throws PersistentException {
	this(org.testis.orm.manager.TestisDbPersistentManager.instance()
		.getSession());
    }

    public T_bed_dutCriteria createT_bed_dutCriteria() {
	return new T_bed_dutCriteria(createCriteria("ORM_T_bed_dut"));
    }

    public T_bed_dslam uniqueT_bed_dslam() {
	return (T_bed_dslam) super.uniqueResult();
    }

    public T_bed_dslam[] listT_bed_dslam() {
	java.util.List list = super.list();
	return (T_bed_dslam[]) list.toArray(new T_bed_dslam[list.size()]);
    }
}
